//
// Created by zhangzhiwen on 25-5-24.
//

#ifndef DISTANCE_H
#define DISTANCE_H

#include "stm32f1xx_hal.h"
#include "main.h"

// 定义三维点结构体
typedef struct {
    double x;
    double y;
    double z;
} Point3D;

double point_to_line_distance(Point3D point, Point3D line_point, Point3D line_direction);

#endif //DISTANCE_H
